# users interface
import pygame

class UI:
    def __init__(self,surface):
        # setup
        self.display_surface = surface

        # coins
        self.coin = pygame.image.load('../graphics/enzyme/enzyme.png').convert_alpha()
        self.coin_rect = self.coin.get_rect(topleft = (20,10))
        self.font = pygame.font.SysFont('Lucida Sans',30)
    
    def show_coins(self,amount):
        self.display_surface.blit(self.coin,self.coin_rect)
        coin_amount_surface = self.font.render(str(amount) + '/7',False, 'white')
        coin_amount_rect = coin_amount_surface.get_rect(midleft = (self.coin_rect.right + 4,self.coin_rect.centery))
        self.display_surface.blit(coin_amount_surface,coin_amount_rect)